﻿<%@ Page Title="" Async="true" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Table.aspx.cs" Inherits="EpiPoker.Table" EnableEventValidation="true" %>

<%@ Register Src="Seat.ascx" TagName="Seat" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div id="playarea">
        <div class="front">
            <asp:UpdatePanel ID="UpdateSeat" runat="server">
                <ContentTemplate>
                    <div id="ContentUp">
                        <asp:LinkButton ID="LeaveTable" Text="Leave Table" OnClick="Leave_Table" runat="server" />
                        <asp:Button ID="Fold" OnClick="FoldClick" runat="server" Text="Fold" CssClass="actions" />
                        <asp:Button ID="CheckCall" runat="server" OnClick="Call" Text="Check/Call" CssClass="actions" />
                        <asp:Button ID="Raise" runat="server" OnClick="RaiseClick" Text="Raise" CssClass="actions" />
                        <asp:TextBox ID="RaiseValue" runat="server" CssClass="button"></asp:TextBox>
                        <img src="Images/dollar.png" alt="dollar" class="pic" />
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
            
            <asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Conditional" runat="server">
            <ContentTemplate>
            <div id="SeatsUp" class="seatline">
                <asp:Table ID="Table1" runat="server" HorizontalAlign="Center">
                    <asp:TableRow>
                        <asp:TableCell ID="TcSeat1" CssClass="Seat" runat="server">
                            <uc1:Seat ID="Seat1" runat="server"></uc1:Seat>
                        </asp:TableCell>
                        <asp:TableCell ID="TcSeat2" CssClass="Seat" runat="server">
                            <uc1:Seat ID="Seat2" runat="server"></uc1:Seat>
                        </asp:TableCell>
                        <asp:TableCell ID="TcSeat3" CssClass="Seat" runat="server">
                            <uc1:Seat ID="Seat3" runat="server"></uc1:Seat>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </div>
            </ContentTemplate>
            </asp:UpdatePanel>
            <div id="SeatsLeft" class="seatrow">
                <asp:Table ID="Table2" runat="server" HorizontalAlign="Center">
                    <asp:TableRow>
                        <asp:TableCell ID="TcSeat9" CssClass="Seat" runat="server">
                            <uc1:Seat ID="Seat9" runat="server"></uc1:Seat>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell ID="TcSeat10" CssClass="Seat" runat="server">
                            <uc1:Seat ID="Seat10" runat="server"></uc1:Seat>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </div>
            <div id="PokerTable">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <div id="Cards">
                            <asp:Image ID="First" runat="server" CssClass="cartes"/>
                            <asp:Image ID="Second" runat="server" CssClass="cartes"/>
                            <asp:Image ID="Third" runat="server" CssClass="cartes"/>
                            <asp:Image ID="Fourth" runat="server" CssClass="cartes"/>
                            <asp:Image ID="Fifth" runat="server" CssClass="cartes"/>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <div id="SeatsRight" class="seatrow">
                <asp:Table ID="Table3" runat="server" HorizontalAlign="Center">
                    <asp:TableRow>
                        <asp:TableCell ID="TcSeat4" CssClass="Seat" runat="server">
                            <uc1:Seat ID="Seat4" runat="server"></uc1:Seat>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell ID="TcSeat5" CssClass="Seat" runat="server">
                            <uc1:Seat ID="Seat5" runat="server"></uc1:Seat>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </div>
            <div id="SeatsDown" class="seatline">
                <asp:Table ID="Table4" runat="server" HorizontalAlign="Center">
                    <asp:TableRow>
                        <asp:TableCell ID="TcSeat6" CssClass="Seat" runat="server">
                            <uc1:Seat ID="Seat6" runat="server"></uc1:Seat>
                        </asp:TableCell>
                        <asp:TableCell ID="TcSeat7" CssClass="Seat" runat="server">
                            <uc1:Seat ID="Seat7" runat="server"></uc1:Seat>
                        </asp:TableCell>
                        <asp:TableCell ID="TcSeat8" CssClass="Seat" runat="server">
                            <uc1:Seat ID="Seat8" runat="server"></uc1:Seat>
                        </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </div>
        </div>
        <img src="Images/BackgroundWood.png" alt="bgwood" class="bgwood" />
    </div>
</asp:Content>
